package com.nf.ch03.test05.demo02;

/**
 * @author lwj
 * @date 2025-03-03
 * @vesion 1.0.0
 */
public class InstrumentTest {
    public static void main(String[] args) {
        Musician musician = new Musician("李进峰");

        Guitar guitar = new Guitar("吉他","摇滚音");
        Piano piano = new Piano("钢琴","动听");

        musician.perform(guitar);
        musician.perform(piano);
    }
}
